<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="/web/header.jsp"%>
	<title>主页</title>
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">JAVA-0000</div>
			<ul class="layui-nav layui-layout-left">   </ul>
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item">
				    <a href="javascript:;"> 
<%-- 				        <img src="<%=path%>/img/fei.png" --%>
<!-- 				        class="layui-nav-img"/> -->
				        	用户
<%-- 				        	[${user.name}] --%>
				    </a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:openUser()">基本资料</a>
						</dd>
						<dd>
							<a href="javascript:openPass()">修改密码</a>
						</dd>
						<dd>
                            <a href="javascript:openPic()">修改头像</a>
                        </dd>
					</dl>
				</li>
				<li class="layui-nav-item">
				    <a href="javascript:goLogout()">注销</a>
				</li>
			</ul>
		</div>
		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" >
					<li class="layui-nav-item layui-nav-itemed">
					    <a href="javascript:;">信息维护</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" 
								data-url="/web/page/department/list.jsp"
								class="site-demo-active">部门信息维护</a>
							</dd>
							<dd>
								<a href="javascript:;" 
								data-url="/web/page/employee/list.jsp"
								class="site-demo-active">员工信息维护</a>
							</dd>
							<dd>
                                <a href="javascript:;" 
                                data-url="/web/page/project/list.jsp"
                                class="site-demo-active">项目信息维护</a>
                            </dd>
                            <dd>
                                <a href="javascript:;" 
                                data-url="/web/page/addr/addrlist.jsp"
                                class="site-demo-active">绩效信息维护</a>
                            </dd>
						</dl>
					</li>
					<li class="layui-nav-item">
					    <a href="javascript:;">基础配置</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;" 
								class="site-demo-active" 
								data-url="/web/page/dict/dictlist.jsp">
								基础数据维护</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/404.jsp">404-1</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/page/echarts/a.jsp">e1</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/page/echarts/b.jsp">e2</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/page/echarts/c.jsp">e3</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/page/item/item.jsp">词条</a>
							</dd>
							<dd>
								<a href="javascript:;" class="site-demo-active" 
								data-url="/web/page/item/mail.jsp">邮件</a>
							</dd>
							<dd>
                                <a href="javascript:openURL('/web/404.jsp');" 
                                class="site-demo-active">404-2</a>
                            </dd>
						</dl>
					</li>
				</ul>
			</div>
		</div>
		<div class="layui-body"><!-- 内容主体区域 -->
			<iframe name="rightframe" width="99%" height="97%" src="/company_web/web/404.jsp"></iframe>
		</div>
		<div class="layui-footer">© JAVA - 底部固定区域</div>
	</div>
<script>
	$('.site-demo-active').click(function() {
		window.open('${path}' + $(this).data('url'), "rightframe");
	});
// 	$('.site-demo-active:first').click();
	element.render();// element.init();
	function openURL(url){
		window.open('${path}' + url, "rightframe");
	}
	function goLogout() {
		mylayer.confirm("您确认要注销么?", '${path}/loginServlet?method=logout');
	}
	
	function openUser(){
// 		openLayer('/web/page/employee/upd.jsp?code=${user.code}'
// 			,function(){location.reload();})
	}
	function openPass(){
//         openLayer('/web/page/employee/updpass.jsp?code=${user.code}'
//        		,function(){})
    }
    function openPic(){
//         openLayer('/web/page/employee/pic.jsp?code=${user.code}'
//         		,function(){location.reload();})
    }
// function initImage(){
// 	var image = '${user.image}';
<%-- 	image = image?"/image/"+image:con.app_web+'<%=path%>/img/fei.png' --%>
// 	$('img[class="layui-nav-img"]').attr('src',image)
// }
// initImage();
</script>
</body>
</html>